package com.作业.Day4;

import java.util.Scanner;

public class Homework8 {
    public static void main(String[] args) {
        CustomerBiz customerBiz = new CustomerBiz();
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            System.out.print("请输入客户的姓名:");
            String next = scanner.next();
            customerBiz.addName(next);
        }
        System.out.println("*********************");
        System.out.println("客户姓名列表:");
        System.out.println("*********************");
        System.out.println("请输入要修改客户的姓名");
        String oldName = scanner.next();
        System.out.println("请输入新的客户的姓名");
        String newName = scanner.next();
        System.out.println("*********修改结果***********");
         customerBiz.selectName(oldName,newName);

    }
}
